<?php
namespace app\staff\model;
use think\Model;
use think\model\concern\SoftDelete;
class StaffGrade extends Model
{
    use SoftDelete;
    protected $name = "staff_grade";
    protected $pk = "id";
    protected $deleteTime = "delete_time";
    protected $defaultSoftDelete = 0;
    protected $json = [];
    protected $jsonAssoc = true;
    public function getImgAttr($value){
        if($value){
            $value = getAppFilePath($value);
        }else{
            $value = '';
        }
        return $value;
    }
}